<?php
/**
 * Created by PhpStorm.
 * User: arkin
 * Date: 5/18/15
 * Time: 7:20 PM
 */

$coon = mysql_connect("localhost", "root", "123");
mysql_select_db("mexrap");
mysql_query("set names utf8");

$day=$_POST["name_value"];

$sql = "select * from `mexrap_static`";
$result = mysql_query($sql);
$array = array();
while ($arr = mysql_fetch_row($result)) {
    array_push($array, $arr);
}
//echo("<pre>");
//print_r($array);
        echo(json_encode($array));
